<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/pages/common/taglib.jsp"%>
<c:forEach var="comment" varStatus="commentindex" items="${datas}">
	<tr>
		<td>
			${comment.id}
			<c:if test="${commentindex.index==0}"><input type="hidden" id="itemCount" value="${itemCount}"/></c:if>
		</td>
		<td class="keys">${comment.nickname}</td>
		<td >${comment.title}</td>
		<td >${comment.content}</td>

		<td class="tmui-tips" tip="${tz:formatDate(comment.createTime,'yyyy-MM-dd HH:mm:ss')}">
				${tz:timeFormat(comment.createTime)}
		</td>
		<td><a href="javascript:void(0)" onclick="commnent.showPicture(this,'${comment.id}')">点击查看</a> </td>
		<td>
			<tz:if test="${comment.deleteCode=='001'}">
				<tz:then><a href="javascript:void(0)" opid="${comment.id}" mark="deleteCode" val="002" onclick="tzAdmin.op(this);" class="green">否</a></tz:then>
                	<tz:else><a href="javascript:void(0)" opid="${comment.id}" mark="deleteCode" val="001" onclick="tzAdmin.op(this);" class="red">是</a></tz:else>
			</tz:if>
		</td>

		<td>
			<a href="${adminPath}/shop/comment/edit/${comment.id}"  class="btn btn-success" ><i class="icon-pencil"></i> 修改</a>
			<a href="javascript:void(0);" data-opid="${comment.id}" onclick="tzAdmin.remove(this)" class="btn btn-danger"><i class="iconfont icon-del"></i> 删除</a>
		</td>
	</tr>
</c:forEach>

